package SpringBoot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class controller {

    /**
     * http://localhost:8080/test?id=001
     * @param id
     * @return
     */

    @GetMapping("/test")
    public String test(String id) {
        System.out.println ("test接口被访问了，参数为=" + id);
        return "test";
    }

    @GetMapping("/test1")
    public String test1(String id ){
        System.out.println ("test1接口被访问了，参数为=" + id);

        return "test1";
    }


}
